.class final Lcom/ninesky/browser/as;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/text/TextWatcher;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/AddBookmarkActivity;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/AddBookmarkActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/as;->a:Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final afterTextChanged(Landroid/text/Editable;)V
    .locals 0

    return-void
.end method

.method public final beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0

    return-void
.end method

.method public final onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/as;->a:Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-static {v0}, Lcom/ninesky/browser/AddBookmarkActivity;->c(Lcom/ninesky/browser/AddBookmarkActivity;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x14

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/as;->a:Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-static {v0}, Lcom/ninesky/browser/AddBookmarkActivity;->c(Lcom/ninesky/browser/AddBookmarkActivity;)Landroid/widget/EditText;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/as;->a:Lcom/ninesky/browser/AddBookmarkActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/AddBookmarkActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f07005a

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setError(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method
